package com.tuanzi.blog.service;

import com.github.pagehelper.PageInfo;
import com.tuanzi.blog.model.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 守得云开见月明
 */

public interface TypeService {

    //新增接口
    int saveType(Type type);

    Type getType(Long id);

    List<Type> getAllTypes();

    int updateType(Long id,Type type);

    Type deleteType(Long id);

}
